package com.yxt.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxt.admin.entity.GeneratorEntity;
import com.yxt.admin.mapper.GeneratorMapper;
import com.yxt.admin.service.GeneratorService;
import com.yxt.common.utils.ajax.PageUtils;
import com.yxt.common.utils.ajax.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("generatorService")
public class GeneratorServiceImpl extends ServiceImpl<GeneratorMapper, GeneratorEntity> implements GeneratorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GeneratorEntity> page = this.page(
                new Query<GeneratorEntity>().getPage(params),
                new QueryWrapper<GeneratorEntity>()
        );

        return new PageUtils(page);
    }

}